
/**
 * Created with Intellij IDEA
 * Description
 * User:ASUS
 * Date:2024-07-31
 * Time:15:32
 */
public class Date {
    public int year;
    public int month;
    public int day;
    public static String Name="小怡";

    public static void main(String[] args) {
       Date d1=new Date();
        System.out.println(d1.Name);
       Date d2=new Date();
       Date d3=new Date();
        d1.setDay(2024,7,29);
        d2.setDay(2024,7,30);
        d3.setDay(2024,7,31);
        d1.printDate();
        d2.printDate();
        d3.printDate();
    }
    public void setDay(int year,int month,int day){
        this.year=year;
        this.month=month;
        this.day=day;
    }
    public void printDate(){
        System.out.println(this.year+"/"+this.month+"/"+this.day+"/");
    }

}
